package com.reder.practice.common.listener;

import com.reder.practice.common.event.FollowEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 关注事件监听器
 *
 * @author Fish
 * <p>Email: fishinlove@163.com</p>
 * <p>created by 2019/09/23 20:02:44</p>
 */
@Component
@Slf4j
public class FollowEventListener implements ApplicationListener<FollowEvent> {

    @Override
    public void onApplicationEvent(FollowEvent event) {

        // 日志记录
        log.debug("关注事件发生！" + event);
    }
}
